package com.rraj.domain.activity;

import com.rraj.common.domain.BaseDomain;
import java.io.Serializable;
import java.util.Date;

public class ActivityShare extends BaseDomain<Integer> implements Serializable {
    private Integer id;

    private Long memberId;

    private Integer channelId;

    private Date createTime;

    private Date updateTime;

    private Long activityId;

    private Date shareDate;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Date getShareDate() {
        return shareDate;
    }

    public void setShareDate(Date shareDate) {
        this.shareDate = shareDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActivityShare other = (ActivityShare) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getChannelId() == null ? other.getChannelId() == null : this.getChannelId().equals(other.getChannelId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getActivityId() == null ? other.getActivityId() == null : this.getActivityId().equals(other.getActivityId()))
            && (this.getShareDate() == null ? other.getShareDate() == null : this.getShareDate().equals(other.getShareDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getActivityId() == null) ? 0 : getActivityId().hashCode());
        result = prime * result + ((getShareDate() == null) ? 0 : getShareDate().hashCode());
        return result;
    }

    public ActivityShare id(Integer value) {
        this.id = value;
        return this;
    }

    public ActivityShare memberId(Long value) {
        this.memberId = value;
        return this;
    }

    public ActivityShare channelId(Integer value) {
        this.channelId = value;
        return this;
    }

    public ActivityShare createTime(Date value) {
        this.createTime = value;
        return this;
    }

    public ActivityShare updateTime(Date value) {
        this.updateTime = value;
        return this;
    }

    public ActivityShare activityId(Long value) {
        this.activityId = value;
        return this;
    }

    public ActivityShare shareDate(Date value) {
        this.shareDate = value;
        return this;
    }
}